package com.me.bbs.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.PostCollectionDTO;
import com.me.bbs.entity.PostCollection;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-16
 */
public interface ICollectionService extends IService<PostCollection> {

    void saveCollection(Long postId) throws Exception;

    void delCollection(Long postId) throws Exception;

    Page<PostCollectionDTO> getCollectionByUser(Page<PostCollectionDTO> page, LambdaQueryWrapper<PostCollection> wrapper);
}
